#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*
//Task 1
void main()

{
	char FirstName[15];
	char Surname[15];
	int age;
	float height;

	printf("What's your firstname?");
	scanf("%s", &FirstName);
	printf("What's your surname?");
	scanf("%s", &Surname);
	printf("How old are you?");
	scanf("%d", &age);
	printf("How tall are you?");
	scanf("%f", &height);

	printf("/n So you are called %s %s, you are %d years old and you are %f feet tall.", FirstName, Surname, age, height);
}
*/

/*


*/

//excercise 4

void wheel();

void main()
{
	int first, second, third;
	srand(time(NULL));
	int lownumber = 1;
	int highnumber = 5;
	int points;

	char playagain;
	char yesno; 

	printf("Do you want to spin the wheel?");
	scanf(" %c", &playagain);
	
	while (playagain == 'y')
	{
		if (playagain == 'y')
		{
			wheel();
		}
		printf("\n\nAnother spin?: ");
		scanf(" %c", &playagain);
		if (playagain == 'n')
		{
			printf("\nThanks For Playing...");
		}
	}

}

void wheel()
{
	int first, second, third;
	int lownumber = 1;
	int highnumber = 5;
	
	first = rand() % (highnumber - lownumber + 1) + lownumber;
	second = rand() % (highnumber - lownumber + 1) + lownumber;
	third = rand() % (highnumber - lownumber + 1) + lownumber;

	printf("Your Number is %d %d %d", first, second, third);

	if (first == 1 && second == 1 && third == 1)
	{
		printf("\nYou score 20 points");
	}
	if (first == 2 && second == 2 && third == 2)
	{
		printf("\nYou score 20 points");
	}
	if (first == 3 && second == 3 && third == 3)
	{
		printf("\nYou score 20 points");
	}
	if (first == 4 && second == 4 && third == 4)
	{
		printf("\nYou score 20 points");
	}
	if (first == 5 && second == 5 && third == 5)
	{
		printf("\nYou score 2000 points");
	}
	if (first == 5 && second == 5)
	{
		printf("\nYou score 100 points");
	}
	if (third == 5 && second == 5)
	{
		printf("\nYou score 100 points");
	}
	if (first == 5 && third == 5);
	{
		printf("\nYou score 100 points");
	}

}